package com.xls.boxlibrary.mvp;

import android.app.Activity;
import android.content.Context;

import java.util.ArrayList;

/**
 * MVPPlugin
 */

public class BasePresenterImpl<V extends BaseView> implements BasePresenter<V>{
    protected V mView;
    protected Context context;
    protected Activity activity;

    @Override
    public void attachView(V view) {
        mView=view;
        activity=view.getActivity();
        context=view.getContext();
    }

    @Override
    public void detachView() {
        mView=null;
    }

    @Override
    public void getSourceData() {

    }

    public V getView() {
        return mView;
    }
}
